﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ggPage.aspx.cs" Inherits="ggPage" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        body
        {
            margin: 0 auto;
            text-align:center;
            font-size: 12px;
        }
        table
        {
            border-collapse: collapse;
        }
        #divContainer
        {
        	margin: 0 auto;
            text-align:left;
            width: 770px;
        }       
        .divTitle
        {
            height: 30px;
            line-height: 30px;
            vertical-align: middle;
        }
        .divTitle span
        {
            font-weight: bold;
        }
        ul, ul.hori
        {
            list-style: none;
            margin: 0px;
            padding: 0px;
        }
        ul li
        {
            line-height: 25px;
            padding-top: 5px;
        }
        ul.hori li
        {
            display: inline;
        }
                .gvStyle, .gvStyle th, .gvStyle td
        {
            line-height: 19px;
            border: solid 1px black;
        }
        .gvStyle td table td
        {
            border: none;
        }
        a
        {
            color: Red;
        }
        a:visited
        {
            color: Red;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="divContainer">
        <div class="divTitle">
            <span>已有公告管理&gt;&gt;</span>
        </div>
        <div id="divBrowse">
            <asp:GridView ID="gvGG" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" Font-Size="12px" PageSize="7"
                Width="100%" CssClass="gvStyle" DataKeyNames="ggNum" 
                onpageindexchanging="gvGG_PageIndexChanging" onrowdeleting="gvGG_RowDeleting" 
                onselectedindexchanging="gvGG_SelectedIndexChanging">
                <RowStyle HorizontalAlign="Left" />
                <Columns>
                    <asp:BoundField DataField="ggTitle" HeaderText="标题">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle Width="155px" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="内容" DataField="ggCont" />
                    <asp:BoundField DataField="ggDate" HeaderText="日期">
                        <ItemStyle Width="80px" />
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle Width="100px" />
                    </asp:BoundField>
                    <asp:CommandField ShowDeleteButton="True" ShowSelectButton="True">
                        <HeaderStyle HorizontalAlign="Left" />
                        <ItemStyle Width="55px" HorizontalAlign="Center" />
                    </asp:CommandField>
                </Columns>
                <FooterStyle HorizontalAlign="Left" />
                <SelectedRowStyle BackColor="#CCFFFF" />
                <HeaderStyle HorizontalAlign="Center" />
            </asp:GridView>
        </div>
        <div class="divTitle">
            <span>添加新公告信息&gt;&gt;</span>
        </div>
        <div>            
            <ul>
                <li>
                    <ul class="hori">
                        <li>标题：</li>
                        <li>
                            <asp:TextBox ID="txtTitle" runat="server" Width="300px"></asp:TextBox></li>
                    </ul>
                </li>
                <li>
                    <ul class="hori">
                        <li style="vertical-align: top;">内容：</li>
                        <li>
                            <asp:TextBox ID="txtCont" runat="server" Height="60px" TextMode="MultiLine" Width="300px"></asp:TextBox></li>
                    </ul>
                </li>                
                <li>
                    <ul class="hori">
                        <li>
                            <asp:Button ID="btnSubmit" runat="server" Text="添加" onclick="btnSubmit_Click" /></li>
                        <li style="padding-left:10px;">
                            <asp:Button ID="btnReset" runat="server" Text="重置" onclick="btnReset_Click" /></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    </form>
</body>
</html>
